import 'package:sqflite/sqflite.dart';

const int _DBVersion = 1;
const String _dbName = "todo_pro.db";

class DBHelper {
  static Future<Database> openDB({OnDatabaseOpenFn? open}) async {
    Database db = await openDatabase(_dbName, version: _DBVersion,onOpen: open);
    return db;
  }

  static Future dbClose(Database db) async {
    await db.close();
    return;
  }
}
